﻿{extend name="$index_style_layout" /}
{block name="head_title"}创建{:M('name')}{/block}

{block name="body_content"}
<style>
body{
	background: #F7F7F7;
}
.ChooseSort{
	max-width:1200px;
	margin:auto;
	padding: 30px;
}
.ChooseSort dl dt{
	display: inline-block;
	line-height: 45px;
	background: #62B3E7;
	padding: 0 20px;
	color: #FFF;
	font-size: 18px;
	word-spacing: 5px;
}	
.ChooseSort dl dd{
	padding: 20px;
	background: #FFF;
	box-shadow:2px 2px 2px #DDD;
}
.ChooseSort dl dd ul li{
	height:45px;
	line-height: 45px;
	overflow: hidden;
	border-bottom: #EEE solid 1px;
}
</style>
<div class="ChooseSort">
	<dl>
		<dt><i class="fa fa-hand-o-right"></i> {if $array_mid}请选择模型{else /}请选择分类{/if}</dt>
		<dd>
			<ul>
			{volist name='$array_mid' id='vo'}
				{if fun("Count@Info","qun_sort",['mid'=>$vo['id']])>0}
				<li><a class="fa fa-arrow-circle-o-right" href="{:murl('add',['mid'=>$vo['id']])}"> {:str_replace('模型','',$vo.title)}</a></li>	
				{/if}
			{/volist}
			{volist name='$array_fid' id='vo'}		
				<li><a href="{:murl('add',['fid'=>$vo['id']])}">{$vo.title_display}</a></li>				 
			{/volist}
			</ul>
		</dd>
	</dl>
</div>
{/block}